package com.zs.leymovie.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;
import com.zs.leymovie.R;
import com.zs.leymovie.activity.MyActivity;

/**
 * A simple {@link Fragment} subclass.
 * *  作者：舒纲聿、张小冬
 * 时间：2015年8月17日20:53:28
 * 功能：火箭重定位界面
 */
public class LocationFragment extends Fragment {
    @ViewInject(R.id.shouye_huojian)
    private ImageView imageView;
    private Intent intent;
    public LocationFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_location, container, false);
        ViewUtils.inject(this,view);
        intent = new Intent(getActivity(), MyActivity.class);
        startActivity(intent);
        return view;
    }

    @OnClick(R.id.shouye_huojian)
    public void onClick(View view){
        startActivity(intent);
    }
 

/*
    // 综合实现set_demo.xml中的动画
    public void setAll() {
        Animation animation = AnimationUtils.loadAnimation(getActivity(),
                R.anim.huojian);
        imageView.startAnimation(animation);
    }

    @Override
    public void onResume() {
        super.onResume();
    }*/
}
